<?php

namespace app\common\validate;


use think\Validate;
/**
 * 验证器
 */
class  Fupersonal extends Validate
{
    protected $rule = [
//        ['name', 'require|min:2|unique:fuwu_grade,name', '该等级名称必填|该等级名称最少2位|该等级名称已经存在'],
          ['skillid','require','该技能类型必选'],
          ['phone','require|unique:fuwu_personal,phone|length:11,11','该手机号/账号必填|该手机号/账号已存在|该手机号/账号格式不正确'],
          ['password','require|min:6','该密码必填|该密码最少六位'],
          ['quren_password','require|confirm:password','该确认密码必填|两次密码输入不一致,请重新输入'],

    ];

    protected $scene = [
        'add' => ['skillid','phone','password','quren_password'],
        'edit'=>['skillid','phone'],
    ];

}